package cn.shenlong.portal.mapper;

import org.apache.ibatis.annotations.Param;

import cn.shenlong.mybatis.BaseMapper;
import cn.shenlong.portal.domain.ContentChannel;

public interface ContentChannelMapper extends BaseMapper<ContentChannel> {

	public void deleteByContentId(@Param("contentId") long contentId);

	public Long findCountByContentId(@Param("contentId") long contentId);

	public ContentChannel findByChannelId(@Param("channelId") long channelId);

	public void deleteByChannelId(@Param("channelId") long channelId);

	public void deleteByContentIdAndChannelId(
			@Param("contentId") long contentId,
			@Param("channelId") long channelId);
}
